﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Octopus.Logging
{
    /// <summary>日志输出内容格式器</summary>
    public interface IFormatter
    {
        /// <summary>将日志的标准参数转换为最终输出的内容</summary>
        /// <param name="time">时间</param>
        /// <param name="message">消息</param>
        /// <param name="errorMessage">错误信息</param>
        /// <param name="context">上下文</param>
        /// <returns>处理后的日志内容</returns>
        string DoFormat(object sender,string title, DateTime logTime,int threadID,
             ActionState actionState,  string message, Exception err, IDictionary<string, object> context);
    }  
}
